export default [
	{
		path: '/app',
		component: () => import("@/components/base/home.vue"),	
		children: [
			{
				path:'/',
				redirect: '/index'
			},
			{
				path:'/index',
				component: () => import("@/components/index.vue"),
			},
			{
				path:'/report',
				component: () => import("@/components/report.vue"),
				meta: { keepAlive: true }//需要缓存页面的配置此参数
			},
			{
				path:'/reportSearch',
				component: () => import("@/components/reportSearch.vue"),
			},
			{
				path:'/reportModel',
				component: () => import("@/components/reportModel.vue"),
			},
			{
				path:'/confirmList',
				component: () => import("@/components/confirmList.vue"),
			},
			{
				path:'/customerList',
				name:'customerList',
				component: () => import("@/components/customer/customerList.vue"),
			},
			{
				path:'/distList',
				component: () => import("@/components/customer/distList.vue"),
			},
			{
				path:'/completeNumber',
				component: () => import("@/components/completeNumber.vue"),
			},
			{
				path:'/scanCode/:id',
				component: () => import("@/components/scanCode.vue"),
			},
			{
				path:'/modifyPassword',
				component: () => import("@/components/modify/modifyPassword.vue"),
			},
			{
				path:'/modifyProject',
				component: () => import("@/components/modify/modifyProject.vue"),
			},
			{
				path:'/customerDetails/:id',
				component: () => import("@/components/customer/customerDetails.vue"),
			},
			{
				path:'/customerDetails/:id/:from',
				component: () => import("@/components/customer/customerDetails.vue"),
			},
			{
				path:'/customerInfo/:id/:premisesId',
				name: 'customerInfo',
				component: () => import("@/components/customer/customerInfo.vue"),
			},
			{
				path:'/electronicConfirmation',
				component: () => import("@/components/electronicConfirmation.vue"),
			},
			{
				path:'/complaintHandling',
				component: () => import("@/components/complaintHandling.vue"),
			},
			{
				path:'/distribution/:id',
				component: () => import("@/components/distribution.vue"),
			},
			{
				path:'/toM2/:id',
				component: () => import("@/components/toM2.vue"),
			},
			{
				path:'/customerModel',
				name:'CustomerModel',
				component: () => import("@/components/customer/customerModel.vue"),
			},
			{
				path:'/premisesList',
				name:'PremisesList',
				component: () => import("@/components/premises/premisesList.vue"),
			},
			{
                path: '/premisesDetail/:id',
				component: () => import("@/components/premises/premisesDetail.vue"),
			},
			{
				path: '/dynamicDetail/:id',
				component: () => import("@/components/premises/dynamicDetail.vue"),
				name: 'DynamicDetail'
			},
			{
                path: '/premisesDetail/:id/:openid',
				component: () => import("@/components/premises/premisesDetail.vue"),
            },
			{
				path:'/org/orgIndex',
				component: () => import("@/components/org/orgIndex.vue"),
			},
			{
				path:'/org/orgEdit',
				name:'OrgEdit',
				component: () => import("@/components/org/orgEdit.vue"),
			},
			{
				path:'/org/search',
				component: () => import("@/components/org/orgSearch.vue"),
			},
			{
				path:'/org/addSuccess',
				name:'AddSuccess',
				component: () => import("@/components/org/addOrgSuccess.vue"),
			},
			{
				path:'/org/addOrgFail',
				name:'AddOrgFail',
				component: () => import("@/components/org/addOrgFail.vue"),
			},
			{
				path:'/reportDeal/:id',
				name:'ReportDeal',
				component: () => import("@/components/customer/reportDeal.vue"),
			},
			{
				path:'/baiduMap',
				name:'BaiduMap',
				component: () => import("@/components/base/BaiDuMapContent.vue"),
			},
			{
				path:'/dealResult',
				name:'DealResult',
				component: () => import("@/components/customer/dealResult.vue"),
			},
			{
				path:'/addFollowUpModel',
				name:'AddFollowUpModel',
				component: () => import("@/components/customer/addFollowUpModel.vue"),
			},
			{
				path:'/bossBoardTop',
				name:'BossBoardTop',
				component: () => import("@/components/board/bossBoardTop.vue"),
			},
			{
				path:'/bossBoardList',
				name:'BossBoardList',
				component: () => import("@/components/board/bossBoardList.vue"),
			},
			{
				path:'/auditReport',
				name:'auditReport',
				component: () => import("@/components/customer/auditReport.vue"),
			},
		]	
	},
	{
		path:'/sharePremisesDetail/:id/:telephone',
		component: () => import("@/components/premises/sharePremisesDetail.vue"),
	},
	{
		path:'/sharePremisesDetail/:id/:telephone/:phoneName',
		component: () => import("@/components/premises/sharePremisesDetail.vue"),
	},{
		path:'/sharePremisesDetail/:id/:telephone/:phoneName/:openid',
		component: () => import("@/components/premises/sharePremisesDetail.vue"),
	},
	{
		path:'/indexNav',
		component: () => import("@/components/indexNav.vue"),
	},
	{
		path:'/forgetPassword',
		component: () => import("@/forgetPassword.vue"),
	},
	{
		path: '/login',
		component: () => import("@/login.vue"),
	},
	{
		path: '*', //跳转主入口
		redirect: '/app'
	}
]